package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.poi.hpsf.Decimal;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaowenting
 * @since 2024-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_goods")
public class SysGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 农作物编号
     */
    private String cropNumbering;

    /**
     * 农作物名称
     */
    private String cropName;

    /**
     * 肥料名称
     */
    private String fertilizerName;

    /**
     * 状态
     */
    private Integer sysTypeState;

    /**
     * 种植年度
     */
    private String plantYear;

    /**
     * 育苗周期
     */
    private String seedlingCycle;

    /**
     * 施肥周期
     */
    private String fertilizationCycle;

    /**
     * 详细地址
     */
    private String addr;

    /**
     * 备注
     */
    private String remark;

    /**
     * 作物类型
     */
    private String cropType;

    /**
     * 是否套袋
     */
    private String bagging;

    /**
     * 种植方式
     */
    private String plantType;

    /**
     * 灌溉周期
     */
    private String irrigationCycle;

    /**
     * 除草周期
     */
    private String weedingCycle;

    /**
     * 登记时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 农户id
     */
    private Integer householdId;

    @TableField(exist = false)
    private String sysName;

    private BigDecimal price;
    /**
     * 库存
     */
    private Integer num;

}
